require "Battle/BattleDefine"

Actions = {
	[1] = {
			table_type = "action",
			id = 1,
			cameraMoveType = CameraMoveType.MoveCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "aoyi1",
								loop = true,
								start_time = 0.533,
								duration = 0.25,
							},
							{
								table_type = "animation",
								name = "attack",
								loop = false,
								start_time = 0.783,
								duration = 1.267,
							},				
						},
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.15,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 1,
						},
						{
							table_type = "move",
							start_time = 1.8,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			events = {
			--[[
						
						{
							table_type = "heal",
							start_time = 1.2,
							target = SelectTargetType.SkillTarget,
							min = 80,
							max = 120,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},
						{
							table_type = "buff",
							start_time = 1.3,
							target = SelectTargetType.SkillTarget,
							buff_tpl_id = 1,	
						},
				]]

						{
							table_type = "damage",
							start_time = 1.1,	
							target = SelectTargetType.SkillTarget,
							min = 60,
							max = 80,
							extra_damage = 10,
							beiji_tpl_id = 3,
						},
						{
							table_type = "damage",
							start_time = 1.6,	
							target = SelectTargetType.SkillTarget,
							min = 80,
							max = 100,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},						
						{		
							table_type = "death",
							start_time = 1.7,
						},
					},
		},
	[2] = {
			table_type = "action",
			id = 2,
			cameraMoveType = CameraMoveType.MoveCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "aoyi1",
								loop = true,
								start_time = 0.533,
								duration = 0.25,
							},
							{
								table_type = "animation",
								name = "skill",
								loop = false,
								start_time = 0.783,
								duration = 1.833,
							},
						},
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.15,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 1.5,
						},
						{
							table_type = "move",
							start_time = 2.616,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			events = {
						{
							table_type = "damage",
							start_time = 1.1,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},
						{
							table_type = "damage",
							start_time = 1.6,	
							target = SelectTargetType.SkillTarget,
							min = 40,
							max = 60,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},
						{
							table_type = "damage",
							start_time = 2.1,	
							target = SelectTargetType.SkillTarget,
							min = 80,
							max = 100,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},						
						{		
							table_type = "death",
							start_time = 2.2,
						},
			},
		},
	[3] = {
			table_type = "action",
			id = 3,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "aoyi",
								loop = false,
								start_time = 0,
								duration = 0.533,
								
							},
							{
								table_type = "animation",
								name = "aoyi1",
								loop = true,
								start_time = 0.533,
								duration = 1,
							},
							{
								table_type = "animation",
								name = "aoyi2",
								loop = false,
								start_time = 1.533,
								duration = 4.6,
							},
			},
			events = {
						{
							table_type = "damage",
							start_time = 2.0,	
							target = SelectTargetType.SkillTarget,
							min = 80,
							max = 120,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},
						{		
							table_type = "death",
							start_time = 2.2,
						},
			},
		},
	[4] = {
			table_type = "action",
			id = 4,
			cameraMoveType = CameraMoveType.MoveCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "aoyi",
								loop = false,
								start_time = 0,
								duration = 0.533,
							},
							{
								table_type = "animation",
								name = "aoyi1",
								loop = true,
								start_time = 0.533,
								duration = 0.25,
							},
							{
								table_type = "animation",
								name = "aoyi2",
								loop = false,
								start_time = 0.783,
								duration = 4.6,
							},
			},
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.25,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 1.5,
						},
						{
							table_type = "move",
							start_time = 5.35,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			events = {
						{
							table_type = "damage",
							start_time = 1.0,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 1,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 1.15,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 1,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 1.3,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 1,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 2.6,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 2.75,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},	
						{
							table_type = "damage",
							start_time = 2.9,	
							target = SelectTargetType.SkillTarget,
							min = 20,
							max = 30,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 3.5,	
							target = SelectTargetType.SkillTarget,
							min = 40,
							max = 50,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 3.8,	
							target = SelectTargetType.SkillTarget,
							min = 40,
							max = 50,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},							
						{
							table_type = "damage",
							start_time = 5,	
							target = SelectTargetType.SkillTarget,
							min = 150,
							max = 180,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},							
						{		
							table_type = "death",
							start_time = 5.35,
						},
			},
		},
	[5]	= {
			table_type = "action",
			id = 5,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "attack",
								loop = false,
								start_time = 0,
								duration = 1.267,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "spell_fly",
							start_time = 1.1,
							target = SelectTargetType.SkillTarget,
							res_name = "ying_zidan",
							start_node = "spell",
							start_offset = { x = 0, y = 0},
							end_node = "hit",
							end_offset = {x = 0, y = 0},
							speed = 20,
							--curve = ",
							damage =	{
											table_type = "damage",
											start_time = 2.0,	
											target = SelectTargetType.SpellTarget,
											min = 80,
											max = 120,
											extra_damage = 10,
											beiji_tpl_id = 1,	
										},
						},
						{		
							table_type = "death",
							start_time = 2.2,
						},
						
					},
		},
	[6] = {
			table_type = "action",
			id = 6,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "attack",
								loop = false,
								start_time = 0,
								duration = 1.1,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "damage",
							start_time = 0.5,	
							target = SelectTargetType.SkillTarget,
							min = 40,
							max = 50,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},
						{
							table_type = "damage",
							start_time = 0.8,	
							target = SelectTargetType.SkillTarget,
							min = 40,
							max = 50,
							extra_damage = 10,
							beiji_tpl_id = 4,
						},						
						{		
							table_type = "death",
							start_time = 1.2,
						},											
					},
		},
	[7]	= {
			table_type = "action",
			id = 7,
			cameraMoveType = CameraMoveType.ScreenCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "skill",
								loop = false,
								start_time = 0,
								duration = 2.333,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "damage",
							start_time = 1.5,	
							target = SelectTargetType.SkillTarget,
							min = 50,
							max = 80,
							extra_damage = 10,
							beiji_tpl_id = 5,
						},
						{
							table_type = "damage",
							start_time = 1.8,	
							target = SelectTargetType.SkillTarget,
							min = 50,
							max = 80,
							extra_damage = 10,
							beiji_tpl_id = 5,
						},						
						{
							table_type = "damage",
							start_time = 2.2,	
							target = SelectTargetType.AllEnemy,
							min = 80,
							max = 120,
							extra_damage = 10,
							beiji_tpl_id = 5,
						},						
						{		
							table_type = "death",
							start_time = 2.3,
						},
					},
		},
	[8] = {
			table_type = "action",
			id = 8,
			cameraMoveType = CameraMoveType.ScreenCenter,
			target = SelectTargetType.AllEnemy,
			animations = {
							{
								table_type = "animation",
								name = "aoyi",
								loop = false,
								start_time = 0,
								duration = 2.467,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "damage",
							start_time = 1.8,	
							target = SelectTargetType.AllEnemy,
							min = 200,
							max = 250,
							extra_damage = 10,
							beiji_tpl_id = 6,
						},
						{		
							table_type = "death",
							start_time = 1.9,
						},
					},
		},	
	[9] = {
			table_type = "action",
			id = 9,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "attack",
								loop = false,
								start_time = 0,
								duration = 1.533,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "damage",
							start_time = 0.5,	
							target = SelectTargetType.SkillTarget,
							min = 80,
							max = 120,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},
						{		
							table_type = "death",
							start_time = 0.6,
						},
					},
		},
	[10] = {
			table_type = "action",
			id = 10,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.AllFriend,
			animations = {
							{
								table_type = "animation",
								name = "skill",
								loop = false,
								start_time = 0,
								duration = 1.133,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "heal",
							start_time = 1.0,	
							target = SelectTargetType.AllFriend,
							min = 300,
							max = 400,
							extra_damage = 10,
							beiji_tpl_id = 2,
						},
						{		
							table_type = "death",
							start_time = 1.1,
						},
					},
		},
	[11] = {
			table_type = "action",
			id = 11,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "aoyi",
								loop = false,
								start_time = 0,
								duration = 0.667,
							},	
							{
								table_type = "animation",
								name = "aoyi1",
								loop = false,
								start_time = 0.667,
								duration = 3.133,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "damage",
							start_time = 1.4,	
							target = SelectTargetType.SkillTarget,
							min = 150,
							max = 180,
							extra_damage = 10,
							beiji_tpl_id = 1,
						},
						{
							table_type = "damage",
							start_time = 1.8,	
							target = SelectTargetType.SkillTarget,
							min = 150,
							max = 180,
							extra_damage = 30,
							beiji_tpl_id = 1,
						},
						{
							table_type = "damage",
							start_time = 2.2,	
							target = SelectTargetType.SkillTarget,
							min = 150,
							max = 180,
							extra_damage = 70,
							beiji_tpl_id = 1,
						},							
						{		
							table_type = "death",
							start_time = 2.3,
						},
					},
		},
	[12] = {
			table_type = "action",
			id = 12,
			cameraMoveType = CameraMoveType.RoleCenter,
			target = SelectTargetType.RandomSelectEnemy,
			animations = {
							{
								table_type = "animation",
								name = "attack",
								loop = false,
								start_time = 0,
								duration = 1.533,
							},				
						},
						--[[
			moves = {
						{
							table_type = "move",
							start_time = 0.533,
							duration = 0.5,
							target = MoveTargetType.SkillTarget,
							horizontal_distance_from_target = 3,
						},
						{
							table_type = "move",
							start_time = 2.3,
							duration = -1,
							target = MoveTargetType.OldPosition,
							horizontal_distance_from_target = 0,
						},
			},
			]]
			events = {

						{
							table_type = "spell_fly",
							start_time = 1.1,
							target = SelectTargetType.SkillTarget,
							res_name = "ying_zidan",
							start_node = "spell",
							start_offset = { x = 0, y = 0},
							end_node = "hit",
							end_offset = {x = 0, y = 0},
							speed = 20,
							--curve = ",
							damage =	{
											table_type = "damage",
											start_time = 2.0,	
											target = SelectTargetType.SpellTarget,
											min = 80,
											max = 120,
											extra_damage = 10,
											beiji_tpl_id = 1,	
										},
						},
						{		
							table_type = "death",
							start_time = 2.3,
						},
						
					},
		},
}